home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 045a / tpapi1.zip / NWCONN.PA1 < prev    next >
Text File  |  1991-12-04  |  4KB  |  71 lines

  1. {!R! FONT 15; FTMD 15; EXIT;}
  2.  
  3.  
  4. {***************************************************************************}
  5. {** Program : NWCONN                                                      **}
  6. {***************************************************************************}
  7. {** Version : 1.0b            ** Started : 11/11/91  ** ENDed :   /  /    **}
  8. {***************************************************************************}
  9. {******************************** Description ******************************}
  10. {***************************************************************************}
  11. {** OOP library for Netware API                                           **}
  12. {**                                                                       **}
  13. {** This unit forms the second level object : CONNECT                     **}
  14. {** This object is a descandent of          : NETWARE                     **}
  15. {**                                                                       **}
  16. {**                                                                       **}
  17. {**                                                                       **}
  18. {**                                                                       **}
  19. {***************************************************************************}
  20. {******************************** Information ******************************}
  21. {***************************************************************************}
  22. {**                                                                       **}
  23. {**                                                                       **}
  24. {**                                                                       **}
  25. {**                                                                       **}
  26. {** This code is (c) 1991 Tony Covelli,                                   **}
  27. {** Portions (c) Novell Inc,                                              **}
  28. {**                                                                       **}
  29. {**                                                                       **}
  30. {***************************************************************************}
  31.  
  32. {$I NETWARE.INC}
  33.  
  34. UNIT NWCONN;
  35.  
  36. INTERFACE
  37.  
  38. USES
  39.  
  40.   netware, nwvar;
  41.  
  42. TYPE
  43.  
  44.   pConnectOBJ = ^ConnectOBJ;
  45.   ConnectOBJ  = object (NetwareOBJ)
  46.  
  47.     constructor Init;
  48.     FUNCTION    AttachToFileServer            (ServerName : ObjectNameType; VAR ConnectionID : WORD) : WORD;
  49.     FUNCTION    AttachToFileServerWithAddress (ServerName : ObjectNameType; VAR ConnectionID : WORD;
  50.                                                NetAddress : ServerAddressType) : WORD;
  51.     PROCEDURE   DetachFromFileServer          (ConnectionID : WORD);
  52.     FUNCTION    EnterLoginArea                (LoginSubdirectoryName : PathNameType; NumberOfLocalDrives : WORD) : WORD;
  53.     FUNCTION    GetConnectionInformation      (ConnectionNumber : WORD; VAR ObjectName : ObjectNameType;
  54.                                                VAR ObjectType : OT_BinderyType; VAR ObjectID : OT_BinderyID;
  55.                                                VAR LoginTime : Byte7ArrayType) : WORD;
  56.     FUNCTION    GetConnectionNumber : WORD;
  57.     FUNCTION    GetInternetAddress            (ConnectionNumber : WORD; VAR NetworkNumber : Byte4ArrayType;
  58.                                                VAR PhysicalNodeAddress : Byte6ArrayType; VAR SocketNumber : WORD) : WORD;
  59.     FUNCTION    GetObjectConnectionNumbers    (ObjectName : ObjectNameType; ObjectType : OT_BinderyType;
  60.                                                VAR NumberOfConnections : WORD;
  61.                                                VAR ConnectionList : ConnectionListType; MaxConnections : WORD) : WORD;
  62.     PROCEDURE   GetStationAddress             (VAR PhysicalNodeAddress : Byte6ArrayType);
  63.     FUNCTION    LoginToFileServer             (ObjectName : ObjectNameType; ObjectType : OT_BinderyType;
  64.                                                ObjectPassword : PasswordType; ConnectionID : WORD) : WORD;
  65.     PROCEDURE   Logout;
  66.     PROCEDURE   LogoutFromFileServer          (ConnectionID : WORD);
  67.     destructor  Done; virtual;
  68.  
  69.   END;
  70.  
  71.